package yawning.mew.cat;

import yawning.mew.sim.SimulationEvent;

public class EventOoC extends SimulationEvent {
	CatModelSimState mState;
	
	EventOoC(CatModelSimState state) {
		super(state.mSimUtil);
		mState = state;
	}

//	@Override
	public void run() {
		if (mState.mSimUtil.getRandom().nextBoolean(mState.mModel.pOoCProc)) {
			mState.nrOoCProcs++;

			if (mState.mDebug) mState.DBGF("Omen of Clarity");

			schedule(mState.mModel.oocBuffDuration);
		}
	}
}